
/**
 *
 * @author Airlangga
 */
import java.io.*;

public class GetUserInput {

    public static String getUserChoice(String subMenu) {
        System.out.print(subMenu);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String name = null;
        try {
            name = br.readLine();
            System.out.println("Inside getUserChoice()");
            System.out.println("The user input : " + name);
        } catch (IOException e) {
            System.out.println("Error!");
            System.exit(1);
        }
        return name;
    }
}
